<template>
    <div>
        <img
            class="cont"
            :src="dataSource.images_content"
        >
        <div class="footer">
            <img :src=" dataSource.images_qrcode">
            <div>
                <p>长按识别二维码</p>
                <p>{{dataSource.vipcn_phone}}</p>
            </div>
        </div>
    </div>
</template>
<script>
export default {
    name: "wxCont",
    data() {
        return {
            dataSource: {}
        };
    },
    methods: {
        // 方法
        getInfo() {
            let params = {
                id: this.$route.query.id
            };
            this.$post("/index/get_weixinhao", params)
                .then(res => {
                    if (res.code === 20000) {
                        this.dataSource = res.data
                    }
                })
                .catch(err => { });
        }
    },
    beforeCreate() {
        document.querySelector("body").setAttribute("style", "background-color:#fff");
    },
    created() {
        // 实例创建完成
        this.getInfo();
    },
};
</script>
<style lang="less" scoped>
@import url("../../asset/css/wxCont");
</style>